package com.yolo.example.provider;


import com.yolo.example.common.serivce.UserService;
import yolorpc.registry.LocalRegistry;
import yolorpc.server.VertxHttpServer;


/**
 * @Program: RPC
 * @description: 简易服务提供者示例
 * @author: yolo
 * @create: 2025-04-18 16:04
 **/
public class EasyProviderExample {
    public static void main(String[] args) {
        // 注册服务
        LocalRegistry.register(UserService.class.getName(), UserServiceImpl.class);

        // 启动Web服务
        VertxHttpServer vertxHttpServer = new VertxHttpServer();
        vertxHttpServer.doStart(8080);
    }
}
